module.exports = {
  lintOnSave: false,
  // publicPath: '/dgdxVue/',
  publicPath: './',
  outputDir: 'dgdxVue',
  productionSourceMap: process.env.NODE_ENV != 'production',
  pages: {
    facer:{
      entry: 'src/pages/facer/main.js',
      template: 'public/facer.html',
      filename: 'facer.html'
    },
    index: {
      entry: 'src/pages/home/main.js',
      template: 'public/index.html',
      filename: 'index.html'
    },
    company: {
      entry: 'src/pages/company/main.js',
      template: 'public/company.html',
      filename: 'company.html'
    },
    companylist: {
      entry: 'src/pages/companylist/main.js',
      template: 'public/companylist.html',
      filename: 'companylist.html'
    },
    companyDetail: {
      entry: 'src/pages/companyDetail/main.js',
      template: 'public/companyDetail.html',
      filename: 'companyDetail.html'
    },
    job: {
      entry: 'src/pages/job/main.js',
      template: 'public/job.html',
      filename: 'job.html'
    },
    jobList: {
      entry: 'src/pages/jobList/main.js',
      template: 'public/jobList.html',
      filename: 'jobList.html'
    },
    jobDetail: {
      entry: 'src/pages/jobDetail/main.js',
      template: 'public/jobDetail.html',
      filename: 'jobDetail.html'
    },
    join: {
      entry: 'src/pages/join/main.js',
      template: 'public/join.html',
      filename: 'join.html'
    },
    joinAdd: {
      entry: 'src/pages/joinAdd/main.js',
      template: 'public/joinAdd.html',
      filename: 'joinAdd.html'
    },
    findUser: {
      entry: 'src/pages/findUser/main.js',
      template: 'public/findUser.html',
      filename: 'findUser.html'
    },
    joinDetail: {
      entry: 'src/pages/joinDetail/main.js',
      template: 'public/joinDetail.html',
      filename: 'joinDetail.html'
    },
    localNews: {
      entry: 'src/pages/localNews/main.js',
      template: 'public/localNews.html',
      filename: 'localNews.html'
    },
    newsDetail: {
      entry: 'src/pages/newsDetail/main.js',
      template: 'public/newsDetail.html',
      filename: 'newsDetail.html'
    },
    jobnewsDetail: {
      entry: 'src/pages/jobnewsDetail/main.js',
      template: 'public/jobnewsDetail.html',
      filename: 'jobnewsDetail.html'
    },
    jobNews: {
      entry: 'src/pages/jobNews/main.js',
      template: 'public/jobNews.html',
      filename: 'jobNews.html'
    },
    member: {
      entry: 'src/pages/member/main.js',
      template: 'public/member.html',
      filename: 'member.html'
    },
    personResume: {
      entry: 'src/pages/personResume/main.js',
      template: 'public/personResume.html',
      filename: 'personResume.html'
    },
    personInfo: {
      entry: 'src/pages/personInfo/main.js',
      template: 'public/personInfo.html',
      filename: 'personInfo.html'
    },
    companyCenter: {
      entry: 'src/pages/companyCenter/main.js',
      template: 'public/companyCenter.html',
      filename: 'companyCenter.html'
    },
    userReg: {
      entry: 'src/pages/userReg/main.js',
      template: 'public/userReg.html',
      filename: 'userReg.html'
    },
    forgetPwd: {
      entry: 'src/pages/forgetPwd/main.js',
      template: 'public/forgetPwd.html',
      filename: 'forgetPwd.html'
    },
    companyReg: {
      entry: 'src/pages/companyReg/main.js',
      template: 'public/companyReg.html',
      filename: 'companyReg.html'
    }
  },
  devServer: {
    disableHostCheck: true
    // proxy: 'https://www.qugouzhigong.top'
    // proxy:{
    //   '/dgdx-Api': {
    //     target: `https://www.qugouzhigong.top`, // 测试环境
    //     // target: 'http://60.21.134.124', // 生产环境
    //     changeOrigin: true,
    //     // pathRewrite: {
    //     //   '^/dgdx-Api': ''
    //     // }
    //   }
    // }
  }
}

